As a Doctor, I want to log in to EEG_Collect system, so that I can complete a collection task
{
	Basic Flow {
		(User)1. the Doctor shall open EEG Collect system and enter login page.
		(User)2. the Doctor shall enter username and password in input box.
		(System)3. When complete login information input, the EEG_Collect shall encrypted password NON FUNCTIONAL.
		(System)4. If status of login account is abnormal, the EEG_Collect shall reject user login requests NON FUNCTIONAL.
		(System)5. When starts a login request, the EEG_Collect shall verify username and password.
		(System)6. When verifies username and password, the EEG_Collect shall create a user session.
	}
	Alternative Flow {
		A. At any time, Doctor requests a password reset operation :
			1. User enters username.
			2. System display security questions of this account.
			3. User view and answer security questions.
			4. System verify security questions.
			5. User enter a new password.
			6. System updates new password.
	}
}
As a Doctor, I want to collect patients EEG data, so that I can create a EEG diagnostic report
{
	Basic Flow {
		(User)1. the Doctor shall click scan button.
		(System)2. When starts a scanning, the EEG_Collect shall start searching for surrounding Bluetooth devices.
		(System)3. When process a scanning, the EEG_Collect shall stop scanning within five seconds NON FUNCTIONAL.
		(System)4. When stops a scanning, the EEG_Collect shall display devices that have been turned on.
		(User)5. the Doctor shall click connect button.
		(System)6. When starts a connecting, the EEG_Collect shall connect a device.
		(System)7. When establishing a connection with device, the EEG_Collect shall connect in encrypted mode NON FUNCTIONAL.
		(User)8. the Doctor shall click collect button.
		(System)9. When starts a collecting, the EEG_Collect shall send collection instructions and receive data.
		(System)10. When receives eeg signal data, the EEG_Collect shall display real time EEG data.
		(System)11. When displys eeg signal data, the EEG_Collect shall display in a friendly line chart format NON FUNCTIONAL.
		(User)12. the Doctor shall click record button.
		(System)13. When starts a record, the EEG_Collect shall save EEG data to an EDF file.
	}
	Alternative Flow {
		A. At any time, Device disconnected :
			1. System updates device status to disconnected.
			2. System ends data recording.
			3. System pops up device disconnection prompt.
			4. Doctor checks device status and analyzes reason for disconnection.
			5. Doctor Resolve device disconnection issues including being too far away or having low battery levels.
			6. Doctor Restart collection task.
	}
}
As a Doctor, I want to create an EEG diagnostic report, so that patient can view
{
	Basic Flow {
		(User)1. the Doctor shall request to view EEG data.
		(System)2. When starts a view request, the EEG_Collect shall read and display EEG data from EDF file.
		(User)3. the Doctor shall view and analysis EEG data.
		(User)4. the Doctor shall create an EEG diagnostic report and save it.
		(System)5. When stats an EEG diagnostic report saving operation, the EEG_Collect shall save diagnostic report.
	}
}
As a Patient, I want to view an EEG diagnostic report, so that I can know about my brain health condition
{
	Basic Flow {
		(User)1. the Patient shall request to view an EEG diagnostic report.
		(System)2. When starts a view request, the EEG_Collect shall read and display an EEG diagnostic report.
		(User)3. the Patient shall view an EEG diagnostic report.
		(System)2. When downloads a view request, the EEG_Collect shall support downloading in PDF format NON FUNCTIONAL.
	}
}